[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
inportb() Input from Hardware Port
#include <dos.h>
unsigned char inportb(port);
int port; Specified port
inportb() reads a word from 'port'.
Returns: The value read from 'port'.
Notes: The inportb() function is called if <dos.h> is not
included or if <dos.h> is included but inportb() is
#undef, else inportb() is treated as a macro.
Portability: 8086-Family of processors only.
-------------------------------- Example ---------------------------------
The following statements read a byte from port 'x'.
#include <dos.h> /* for inportb */
main()
{
char val;
val = inportb(x);
}
See Also:
inport()
outport()
outportb()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson